the
background, these might work with \startknockout etc.
When I try my example:
\useMPlibrary[dum]
\setupcolors[
rgb=no,cmyk=yes,
intent=overprint,% or knockout
]
\setupbodyfont[modern,ss,18pt]
\starttext
\definecollector[Test]
\setcollector [Test] {\externalfigure[none][width=8cm,height
Thank-you Adam, Hraban and Richard for your suggestions.
In the end it was remarkably simple:
\starttext
\definecollector[example]
\setcollector [example] {\externalfigure[cow][width=6cm,frame=off]}
\setcollector [example] [corner={right,bottom},location={right,top}]
{\rotate[rotation=90
][{\directsetup{figure}\tightlayer[figure]}]
\startsetups figure
\setlayerframed[figure][frame=off,preset=rightbottom]{\copyright\ 2022}
\stopsetups
\externalfigure[cow][background={foreground,figure}]
\stoptext
\starttext
\definecollector[example]
\setcollector [example] {\externalfigure[cow
reating pictures in Inkscape and
>> export it to pdf but sometimes I do screenshots and save it in .png or .pdf
>> format. So I just want to put labels in it like a layer in same size as the
>> included picture.
>>
>> Or is this something that’s already solved so "rei
.png or .pdf
> format. So I just want to put labels in it like a layer in same size as the
> included picture.
>
> Or is this something that’s already solved so "reinventing wheel" is
> unnecessary?
Look at the example for \layeredtext, \collectedtext or \setcollector
and mid aligned as in the example below. However, I prefer not to adjust
the distance manually.
\setupbodyfont [12pt]
\definecollector
[mycollector]
\setcollector
[mycollector]
{\framed[align=normal]{\input khatt-en\par
Hi!
Is there a reason that presets don't work with collectors?
Collectors are based on layers and that's what presets are made for,
right? Bug or feature?
\definecollector
[mycollector]
[width=\textwidth]
\setcollector
[mycollector]
{\framed[width=5cm,height=2cm]{Foo
]}%
\setcollector
[fieldstack]
{\fieldbody
[\currentfieldstackname]
[\c!option=\v!readonly,
\c!width=\wd\scrn_fieldstack_box,
\c!height=\ht\scrn_fieldstack_box,
\c!depth=\dp\scrn_fieldstack_box,
#settings]}}
Wolfgang
\ht\labelbox
\definecollector[label][state=repeat]
\setcollector[label]{\box\labelbox}
\setcollector[label][x=.65\labelwidth,y=.75\labelheight]{udder}
\placefigure
{A labelled cow}
{\flushcollector[label]}
\stoptext
Figurelabel as described in the label manual [1] seem
\labelwidth \labelwidth \wd\labelbox
\newdimen\labelheight \labelheight\ht\labelbox
\definecollector[label][state=repeat]
\setcollector[label]{\box\labelbox}
\setcollector[label][x=.65\labelwidth,y=.75\labelheight]{udder}
\placefigure
{A labelled cow}
{\flushcollector[label]}
\stoptext
}]
\starttext
\newbox\labelbox \setbox\labelbox\hbox{\externalfigure[cow]}
\newdimen\labelwidth \labelwidth \wd\labelbox
\newdimen\labelheight \labelheight\ht\labelbox
\definecollector[label][state=repeat]
\setcollector[label]{\box\labelbox}
\setcollector[label][x=.65\labelwidth,y=.75\labelheight]{udder
# \scratchdimen
# \scratchskip
\screen
\section[references]{text}
\seeregister[text]{text}{text+text+text}
\selectblocks[names][names][critererium]
\selectpaper[options]
\selectversion
# \setcollector
# \setevalue
# \setevariables
# \setflag
# \setfontstrut
# \setgvalue
# \setgvariables
# \setlayer
.75) instead; I have no experience with them,
but setup should be the same as for layer.
% - - - - -
\definecollector[foo][state=repeat]
\starttext
\switchtobodyfont[32pt]
\setcollector[foo]{\strut eat more...}
\flushcollector[foo]
\page[yes]
\setcollector[foo][hoffset=6cm]{\strut poppler
gets reset on each
new page.
use a collector (Details, p.75) instead; I have no experience with them,
but setup should be the same as for layer.
% - - - - -
\definecollector[foo][state=repeat]
\starttext
\switchtobodyfont[32pt]
\setcollector[foo]{\strut eat more...}
\flushcollector[foo
=repeat]
\starttext
\switchtobodyfont[32pt]
\setcollector[foo]{\strut eat more...}
\flushcollector[foo]
\page[yes]
\setcollector[foo][hoffset=6cm]{\strut poppler}
\flushcollector[foo]
\stoptext
% - - - - -
Excellent, thanks.
BTW, just to show how out of the loop I am, where
15 matches
Mail list logo